pub fn odd_fibnacci_sum(threshold: u32) -> u32 {
    let mut fib = Vec::new();
    fib.push(1);
    fib.push(1);
    let mut s = 2;
    if threshold<1 { return 0; }
    for i in 2..10000
    {
        fib.push(fib[i-1]+fib[i-2]);
        if fib[i]>threshold { break; }
        if fib[i]%2==1
        {
            s = s+fib[i];
        }
    }
    return s;
}
